  //
//  LSZRequestResolutionDic.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/9/18.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZRequestResolutionDic.h"

#import "UserPageManager.h"
#import "NetworkTool.h"

#import "AFNetworking.h"

@implementation LSZRequestResolutionDic
 
#pragma mark - 所有的祷告见证
+(void)initWithPrayerAndTestimony:(NSString *)page type:(NSString *)type :(HTTPData)block
{
    NSDictionary * dic = @{ @"page":page,@"type":type, @"size":COUNT_num };
    [kNetworkTool POSTWithUrlStringNew:kBasePostFuyin parameters:dic success:^(NSDictionary * dic) {
        NSInteger status = [dic[@"status"] integerValue];
        if (status == 200) {
            LSZPrayerWitnessListManager * prayerWitnessMg = [[LSZPrayerWitnessListManager alloc]initWithDicPrayerWitnessListManager:dic];
            block(YES,@"yes",prayerWitnessMg);
        }else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 首页_了解基督
+(void)initWithKnowChrist:(NSString *)act id_id:(NSString *)id_id :(HTTPKnowChristData)block
{
    NSDictionary * dic = [[NSDictionary alloc]init];
    NSString * url = [[NSString alloc]init];
    if ([act isEqualToString:@"0"]) {
        url = [NSString stringWithFormat:@"%@?act=%@",http_9kuyin,act];
    }else{
        url = [NSString stringWithFormat:@"%@?act=%@&id=%@",http_9kuyin,act,id_id];
    }
    [kNetworkTool POSTWithUrlStringNew:url parameters:dic success:^(NSDictionary * dic) {
        NSInteger status = [dic[@"status"] integerValue];
        if (status == 200) {
            LSZKnowChristManager * PoetryMg = [[LSZKnowChristManager alloc]initWithKnowChristManager:dic];
            block(YES,@"yes",PoetryMg);
        }else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 诗歌歌谱
+(void)initWithPoetry:(NSString *)pageNumer :(HTTPPoetryData)block
{
    NSDictionary * dic = @{@"type":@"poetry", @"page":pageNumer, @"size":@"1000"};
    [kNetworkTool POSTWithUrlStringNew:kBasePostFuyin parameters:dic success:^(NSDictionary * dic) {
        NSInteger status = [dic[@"status"] integerValue];
        if (status == 200) {
            NSArray *path = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
            NSString *documentsPath = [path objectAtIndex:0];
            NSString *plistPath = [documentsPath stringByAppendingPathComponent:@"LSZlyricBooks.plist"];
            //创建数据
            [dic writeToFile:plistPath atomically:YES];
 
            LSZPoetryManager * PoetryMg = [[LSZPoetryManager alloc]initWithDicPoetryManager:dic];
            block(YES,@"yes",PoetryMg);
        }else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 首页_牧师讲道_视频 不用了
+(void)initWithSaysVideo:(HTTPSaysVideoData)block
{
    NSDictionary * dic = [[NSDictionary alloc]init];
    NSString * str = @"http://fuyin.app.inping.com/movie/api.php?type=muzhe";
    [kNetworkTool POSTWithUrlStringNew:str parameters:dic success:^(NSDictionary * dic) {
        NSInteger status = [dic[@"status"] integerValue];
        if (status == 200) {
            [LSZCacheHandling initAddPathPraisePoetry:jiangdao_shipin NSDictionary:dic];
            LSZPriestPreachedVideoManager * PoetryMg = [[LSZPriestPreachedVideoManager alloc]initWithDicPriestPreachedVideoManager:dic];
            block(YES,@"yes",PoetryMg);
        }else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 首页_牧师讲道_视频 新
+(void)initWithListOfNewPastoralists:(NSString *)page :(HTTPSaysVideoData)block
{
    NSDictionary * dic = [[NSDictionary alloc]initWithObjectsAndKeys:page,@"page",count_num30,@"size", nil];
    NSString * url = [NSString stringWithFormat:@"%@/Movie/author",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * diction) {
        NSString * status = [NSString stringWithFormat:@"%@",diction[@"status"]];
        if ([status isEqualToString:@"1"]) {
            if ([page isEqualToString:@"1"]) {
                [LSZCacheHandling addDicDataCachedDirectly:jiangdao_shipin NSDictionary:diction];
            }
            LSZPriestPreachedVideoManager * PoetryMg = [[LSZPriestPreachedVideoManager alloc]initWithDicPriestPreachedVideoManager:diction];
            block(YES,@"yes",PoetryMg);
        }else{
            NSString * message = [NSString stringWithFormat:@"%@",diction[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * string) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 首页_牧师讲道_音频
+(void)initWithSaysAudio:(NSString *)pageNumer type:(NSString *)type :(HTTPSaysAudioData)block
{
    NSDictionary * dic = @{@"type":type,@"page":pageNumer, @"size":count_num30};
    [kNetworkTool POSTWithUrlStringNew:kBasePostFuyin parameters:dic success:^(NSDictionary * dic) {
        NSInteger status = [dic[@"status"] integerValue];
        if (status == 200) {
            if ([type isEqualToString:@"fenlei"]) {
                NSString * strType = [NSString stringWithFormat:@"%@",dic[@"type"]];
                if ([strType isEqualToString:@"0"]) {
//返回专辑类型
                    if ([pageNumer isEqualToString:@"1"]) {
                        NSString * strType = [NSString stringWithFormat:@"%@_%@",jiangdao_yinpin,type];
                        [LSZCacheHandling initAddPathPraisePoetry:strType NSDictionary:dic];
                    }
                    LSZPriestPreachedAudioManager * PoetryMg = [[LSZPriestPreachedAudioManager alloc]initWithDicPriestPreachedAudioManager:dic type:type value:@"1"];
                    block(YES,@"yes",PoetryMg);
                }else{
//返回歌曲类型
                    block(YES,@"没有最新数据",nil);
                }
            }else{
                if ([pageNumer isEqualToString:@"1"]) {
                    NSString * strType = [NSString stringWithFormat:@"%@_%@",jiangdao_yinpin,type];
                    [LSZCacheHandling initAddPathPraisePoetry:strType NSDictionary:dic];
                }
                LSZPriestPreachedAudioManager * PoetryMg = [[LSZPriestPreachedAudioManager alloc]initWithDicPriestPreachedAudioManager:dic type:type value:@"1"];
                block(YES,@"yes",PoetryMg);
            }
        }else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 首页_牧师讲道_音频_分类机构_专辑或者主题
+(void)initWithThemeAlbum:(NSString *)pageNumer type:(NSString *)type opt:(NSString *)opt parentId:(NSString *)parentId value:(NSString *)value titleStr:(NSString *)titleStr :(HTTPSaysAudioData)block
{
    NSDictionary * dic = @{@"type":type,@"opt":opt, @"parentId":parentId,@"page":pageNumer, @"size":COUNT_num};
    [kNetworkTool POSTWithUrlStringNew:kBasePostFuyin parameters:dic success:^(NSDictionary * dic) {
        NSInteger status = [dic[@"status"] integerValue];
        if (status == 200) {
            if ([pageNumer isEqualToString:@"1"]) {
                NSString * StrFile = [NSString stringWithFormat:@"%@_%@_%@",jiangdao_yinpin_play,titleStr,parentId];
                [LSZCacheHandling initAddPathPraisePoetry:StrFile NSDictionary:dic];
            }
            LSZPriestPreachedAudioManager * PoetryMg = [[LSZPriestPreachedAudioManager alloc]initWithDicPriestPreachedAudioManager:dic type:type value:value];
            block(YES,@"yes",PoetryMg);
        }else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 首页_赞美诗歌_分类
+(void)initWithClassificationOfPraise:(NSString *)pageNumer :(HTTPClassificationPraiseData)block
{
    NSDictionary * dic = @{@"type":@"praise",@"page":pageNumer, @"size":COUNT_num};
    [kNetworkTool POSTWithUrlStringNew:kBasePostFuyin parameters:dic success:^(NSDictionary * dic) {
        NSInteger status = [dic[@"status"] integerValue];
        if (status == 200) {
            if ([pageNumer isEqualToString:@"1"]) {
                [LSZCacheHandling initAddPathPraisePoetry:zanmei_fenlei NSDictionary:dic];
            }
            LSZClassificationPraiseManager * PoetryMg = [[LSZClassificationPraiseManager alloc]initWithClassificationPraiseManager:dic];
            block(YES,@"yes",PoetryMg);
        }else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 排行榜的数据
+(void)rankingData:(NSString *)page :(HTTPleagueTableData)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:page,@"page",count_num30,@"size", nil];
    NSString * url = [NSString stringWithFormat:@"%@/Music/gequlist",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            if ([page isEqualToString:@"1"]) {
                [LSZCacheHandling initAddPathPraisePoetry:newZanmei_paihangbang NSDictionary:dic];
            }
            LSZleagueTableManager * PoetryMg = [[LSZleagueTableManager alloc]initWithleagueTableManager:dic page:page];
            block(YES,@"yes",PoetryMg);
        }else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 新接口歌曲首页(整合推荐、热门、专辑、歌手)
+(void)NewAudioClassification:(HTTPNewAudioHomepage)block{
    NSDictionary * diction = [[NSDictionary alloc]init];
    NSString * url = [NSString stringWithFormat:@"%@/Music/group",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            NSString * str = [NSString stringWithFormat:@"%@_tabbar",shouye_yinpin];
            [LSZCacheHandling addDicDataCachedDirectly:str NSDictionary:dic];
            LSZNewAudioHomepageManager * mg = [[LSZNewAudioHomepageManager alloc]initWithNewAudioHomepage:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 首页_音频_专辑或者歌手的详情页
+(void)initWithAlbumDetailsPage:(NSString *)page type:(NSString *)type parentId:(NSString *)parentId strLastImageView:(NSString *)strLastImageView :(HTTPSpecificTypePlayData)block
{
    NSDictionary * dic = [[NSDictionary alloc]initWithObjectsAndKeys:parentId,@"parentId",page,@"page",count_num30,@"size", nil];
    NSString * url = [NSString stringWithFormat:@"%@/Music/%@",http_zongSJUrl,type];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * diction) {
        NSInteger status = [diction[@"status"] integerValue];
        if (status == 1) {
            if ([page isEqualToString:@"1"]) {
                NSString * str = [NSString stringWithFormat:@"%@_%@_%@",shouye_yinpin, type, parentId];
                [LSZCacheHandling initAddPathPraisePoetry:str NSDictionary:diction];
            }
            LSZSpecificTypePlayManager * PoetryMg = [[LSZSpecificTypePlayManager alloc]initWithSpecificTypePlayManager:diction strLastImageView:strLastImageView];
            block(YES,@"yes",PoetryMg);
        }
        else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 首页_每日灵修_详情 _
+(void)initWithDailyDevotionalDetails:(NSString *)page type:(NSString *)type parentId:(NSString *)parentId month:(NSString *)month :(HTTPSpiritualityData)block
{
     NSDictionary * dic = @{@"type":type, @"parentId":parentId, @"page":[NSString stringWithFormat:@"%@", page], @"size":@"31", @"month":month};
    [kNetworkTool POSTWithUrlStringNew:kBasePostFuyin parameters:dic success:^(NSDictionary * dic) {
        NSInteger status = [dic[@"status"] integerValue];
        if (status == 200) {
            LSZSpiritualityManager * PoetryMg = [[LSZSpiritualityManager alloc]initWithSpiritualityManager:dic];
            if ([page isEqualToString:@"1"]) {
                NSString * strFile = [NSString stringWithFormat:@"%@_%@_%@",lingxiu,parentId,month];
                [LSZCacheHandling initAddPathPraisePoetry:strFile NSDictionary:dic];
            }
            block(YES,@"yes",PoetryMg);
        }else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 首页_诗歌_分类_详情
+(void)initWithClassificationPoetryDetails:(NSString *)page type:(NSString *)type parentId:(NSString *)parentId strLastImageView:(NSString *)strLastImageView :(HTTPSpecificTypePlayData)block
{
    NSDictionary * dic = @{@"type":type, @"parentId":parentId, @"page":[NSString stringWithFormat:@"%@", page], @"size":COUNT_num,@"order":@"random"};
    [kNetworkTool POSTWithUrlStringNew:kBasePostFuyin parameters:dic success:^(NSDictionary * dic) {
        NSInteger status = [dic[@"status"] integerValue];
        if (status == 200) {
            NSString * str = [NSString stringWithFormat:@"%@_%@",zanmei_fenlei,parentId];
            if ([page isEqualToString:@"1"]) {
                [LSZCacheHandling initAddPathPraisePoetry:str NSDictionary:dic];
            }
            LSZSpecificTypePlayManager * PoetryMg = [[LSZSpecificTypePlayManager alloc]initWithSpecificTypePlayManager:dic strLastImageView:strLastImageView];
            block(YES,@"yes",PoetryMg);
        }else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];    }];
}
#pragma mark - 首页_讲道_视频_详情
+(void)initWithVideoDetails:(NSString *)page parentId:(NSString *)parentId :(HTTPVideoDetailsData)block
{
    NSDictionary * dic = [[NSDictionary alloc]initWithObjectsAndKeys:page,@"page",COUNT_num,@"size",parentId,@"name", nil];
    NSString * url = [NSString stringWithFormat:@"%@/Movie/author_list",http_zongSJUrl];
    //    NSString * url = [NSString stringWithFormat:@"http://fuyin.app.inping.com/movie/api.php?type=%@&name=%@&page=%@&size=%@",@"muzhe_list",parentId,page,COUNT_num];
    NSString * urlString  = [url stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
    [kNetworkTool POSTFuYinWithUrlString:urlString input:dic success:^(NSDictionary * diction) {
        NSString * status = [NSString stringWithFormat:@"%@",diction[@"status"]];
        if ([status isEqualToString:@"1"]) {
            if ([page isEqualToString:@"1"]) {
                NSString * strFile = [NSString stringWithFormat:@"%@_%@",jiangdao_shipin,parentId];
                [LSZCacheHandling addDicDataCachedDirectly:strFile NSDictionary:diction];
            }
            LSZVideoDetailsManager * PoetryMg = [[LSZVideoDetailsManager alloc]initWithVideoDetailsManager:diction];
            block(YES,@"yes",PoetryMg);
        }else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 搜索关键字
+(void)initWithSearchKey:(HTTPSearchKey)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:@"get_search_key_list",@"interface", nil];
    NSString * url = [NSString stringWithFormat:@"%@",http_shengjing];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZSearchKeyManager * mg = [[LSZSearchKeyManager alloc]initWithSearchKey:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 搜索内容
+(void)initWithSearchKeyContent:(NSString *)key_word type:(NSString *)type page:(NSString *)page :(HTTPSearchKeyContent)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:@"search",@"interface",key_word,@"key_word",type,@"type",page,@"page",count_num30,@"size", nil];
    NSString * url = [NSString stringWithFormat:@"%@",http_shengjing];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZSearchKeyContentManager * mg = [[LSZSearchKeyContentManager alloc]initWithSearchKeyContent:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark -音频 分类换一下
+(void)tabbarAvideoLetIsDoThat:(NSString *)type size:(NSString *)size page:(NSString *)page :(HTTPAudioChange)block
{
    NSDictionary * dic =  [[NSDictionary alloc]initWithObjectsAndKeys:type,@"type",size,@"size",page,@"spage", nil];
    NSString * url = [NSString stringWithFormat:@"%@/Music/showlist",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            if ([page isEqualToString:@"1"]&&[size isEqualToString:count_num30]) {
                NSString * str = [NSString stringWithFormat:@"%@_tabbar_tuijianMusic",shouye_yinpin];
                [LSZCacheHandling addDicDataCachedDirectly:str NSDictionary:dic];
            }
            LSZAudioChangeManager * mg = [[LSZAudioChangeManager alloc]initWithWithAudioChange:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 收藏夹列表
+(void)getFavoritesList:(NSString *)type uid:(NSString *)uid :(HTTPFavoritesList)block
{
    NSDictionary * dic =  [[NSDictionary alloc]init];
    if ([(NullStringjudgment(NSStr(uid))) isEqualToString:@""]) {
        dic =  [[NSDictionary alloc]initWithObjectsAndKeys:type,@"type",nil];
    }else{
         dic =  [[NSDictionary alloc]initWithObjectsAndKeys:type,@"type",uid,@"fuid",nil];
    }
    NSString * url = [NSString stringWithFormat:@"%@/Music/collect_cat_list",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZFavoritesListManager * mg = [[LSZFavoritesListManager alloc]initWithFavoritesList:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 歌曲收藏列表  1专辑 2歌手  3歌曲 歌曲2个参数     专辑和歌手只传type
+(void)getsongList:(NSString *)cat type:(NSString *)type page:(NSString *)page fuid:(NSString *)fuid :(HTTPSongCollectionList)block
{
    NSDictionary * dic =  [[NSDictionary alloc]init];
    if ([type isEqualToString:@"1"]||[type isEqualToString:@"2"]) {
        if ([fuid isEqualToString:@""]) {
            dic = [[NSDictionary alloc]initWithObjectsAndKeys:type,@"type",page,@"page",count_num30,@"size",nil];
        }else{
            dic = [[NSDictionary alloc]initWithObjectsAndKeys:type,@"type",page,@"page",count_num30,@"size",fuid,@"fuid",nil];
        }
    }else{
        if ([fuid isEqualToString:@""]) {
            dic =  [[NSDictionary alloc]initWithObjectsAndKeys:cat,@"cat",type,@"type",page,@"page",count_num30,@"size",nil];
        }else{
            dic =  [[NSDictionary alloc]initWithObjectsAndKeys:cat,@"cat",type,@"type",page,@"page",count_num30,@"size",fuid,@"fuid",nil];
        }
    }
    NSString * url = [NSString stringWithFormat:@"%@/Music/collect_list",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            NSString * str = [NSString stringWithFormat:@"%@_tabbar_collection_%@",shouye_yinpin,type];
            [LSZCacheHandling addDicDataCachedDirectly:str NSDictionary:dic];

            LSZSongCollectionListManager * mg = [[LSZSongCollectionListManager alloc]initWithSongCollectionList:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 首页_音频_专辑 歌手 热门
+(void)audioMoreClassification:(NSString *)page type:(NSString *)type chooseTitleValue:(NSString *)chooseTitleValue :(HTTPAudioData)block
{
    NSDictionary * dic = [[NSDictionary alloc]initWithObjectsAndKeys: page,@"page",count_num30,@"size", nil];
    NSString * url =[NSString stringWithFormat:@"%@/Music/%@",http_zongSJUrl,type];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSInteger status = [dic[@"status"] integerValue];
        if (status == 1) {
            if ([page isEqualToString:@"1"]) {
                NSString * str = [[NSString alloc]init];
                if ([chooseTitleValue isEqualToString:@"歌手/牧师"]) {
                  str  = [NSString stringWithFormat:@"%@_%@_%@",shouye_yinpin,@"歌手",type];
                }else{
                  str  = [NSString stringWithFormat:@"%@_%@_%@",shouye_yinpin,chooseTitleValue,type];
                }
                [LSZCacheHandling initAddPathPraisePoetry:str NSDictionary:dic];
            }
            LSZAudioManager * PoetryMg = [[LSZAudioManager alloc]initWithAudioManager:dic];
            block(YES,@"yes",PoetryMg);
        }
        else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 视频里面的推荐的视频
+(void)getTheRecommendedVideoFirstData :(HTTPRelatedVideo)block
{
    NSDictionary * dic =  [[NSDictionary alloc]init];
    NSString * url = [NSString stringWithFormat:@"%@/Movie/recom",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZRelatedVideoManager * mg = [[LSZRelatedVideoManager alloc]initWithWithRelatedVideo:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 实时奉献
+(void)initWithDedication:(HTTPDedicationData)block
{
    NSDictionary * dic =  [[NSDictionary alloc]init];
    NSString * url = [NSString stringWithFormat:@"%@/fuyin/donate_list",http_toutiao];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSInteger status = [dic[@"status"] integerValue];
        if (status == 1) {
            LSZDedicationManager * Dedication = [[LSZDedicationManager alloc]initWithDedicationManager:dic];
            block(YES,@"yes",Dedication);
        }
        else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];    }];
}
#pragma mark - 获取用户信息
+(void)initWithGetUserInformation:(HTTPSinformation)block
{
    NSDictionary * dic =  [[NSDictionary alloc]init];
    NSString * url= [NSString stringWithFormat:@"%@/user/get_info",http_toutiao];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZPersonalInformationManager * manager = [[LSZPersonalInformationManager alloc]initWithPersonalInformationManager:dic];
            block(YES,@"ok",manager);
        }else{
            NSString * message = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,message,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 获取我的收藏和笔记
+(void)initWithMyCollection:(NSString *)page type:(NSString *)type :(HTTPCollection)block
{
    NSString * uid  = [NSString stringWithFormat:@"%@",[[NSUserDefaults standardUserDefaults]objectForKey:@"uid"]];
    NSDictionary * diction = @{@"interface":@"get_notes_list",@"type":type, @"usercode":uid, @"page":[NSString stringWithFormat:@"%@", page], @"size":count_num30};
    NSString * url = [NSString stringWithFormat:@"%@/ApiHandler",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZMyCollectionManager * collectionMg = [[LSZMyCollectionManager alloc]initWithMyCollectionManager:dic];
            block(YES,@"ok",collectionMg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 获取签到信息
+(void)getCheckInInformation:(HTTPSignInformation)block
{
    NSDictionary * diction = [[NSDictionary alloc]init];
    NSString * url = [NSString stringWithFormat:@"%@/users/get_sign_info",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            LSZSignInformationManager * mg = [[LSZSignInformationManager alloc]initWithSignInformation:dic];
            block(YES,msg,mg);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 用户的签到排行榜action 0总排行   1今日排行
+(void)userCheckCharts:(NSString *)action page:(NSString *)page :(HTTPCheckCharts)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:action,@"action",page,@"page",count_num30,@"size", nil];
    NSString * url = [NSString stringWithFormat:@"%@/users/sign_order",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            LSZCheckChartsManager * mg = [[LSZCheckChartsManager alloc]initWithCheckCharts:dic];
            block(YES,msg,mg);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 用户的签到记录 0所有人 1个人  tapy 1签到2早祷告
+(void)userCheckRecord:(NSString *)action page:(NSString *)page type:(NSString *)type :(HTTPSignRecord)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:action,@"action",page,@"page",count_num30,@"size",type,@"type", nil];
    NSString * url = [NSString stringWithFormat:@"%@/users/sign_list",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            LSZSignRecordManager * mg = [[LSZSignRecordManager alloc]initWithSignRecord:dic];
            block(YES,msg,mg);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 所有祷告 quBie 1 自己的  其他则是所有人的
+(void)initWithAllPrayersAndTestimonies:(NSString *)ID page:(NSString *)page quBie:(NSInteger)quBie :(HTTPPrayerAndTestimony)block
{
    NSDictionary * diction = [[NSDictionary alloc]init];
    if([[_UserM usercode] isEqualToString:@""]){
        diction = [[NSDictionary alloc]initWithObjectsAndKeys:@"get_pray_or_witness_list",@"interface",ID,@"id",page,@"page",@"5",@"size",@"",@"fuid", nil];
    }else{
        diction = [[NSDictionary alloc]initWithObjectsAndKeys:@"get_pray_or_witness_list",@"interface",ID,@"id",page,@"page",@"5",@"size",[_UserM usercode],@"fuid", nil];
    }
    NSString * url = [NSString stringWithFormat:@"%@",http_shengjing];
    if(quBie == 1){
        [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
            NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
            if ([status isEqualToString:@"1"]) {
                NSString * strid = [NSString stringWithFormat:@"%@_1_%@",shengjing_daogaojianzheng,ID];//
                [LSZCacheHandling addDataForCachingWithDic:@"lsz_mygd" SmallDirectory:strid dic:dic];
                LSZPrayerAndTestimonyManager * mg = [[LSZPrayerAndTestimonyManager alloc]initWithPrayerAndTestimony:dic];
                block(YES,@"ok",mg);
            }else{
                NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
                block(NO,msg,nil);
            }
        } failure:^(NSError * error) {
            [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
                block(NO,strMessage,nil);
            }];
        }];
    }else{
        [kNetworkTool POSTFuYinWithUrlStringNoUserID:url input:diction success:^(NSDictionary * dic) {
            NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
            if ([status isEqualToString:@"1"]) {
                NSString * strid = [NSString stringWithFormat:@"%@_2_%@",shengjing_daogaojianzheng,ID];
                [LSZCacheHandling addDataForCachingWithDic:@"lsz_gd" SmallDirectory:strid dic:dic];
                LSZPrayerAndTestimonyManager * mg = [[LSZPrayerAndTestimonyManager alloc]initWithPrayerAndTestimony:dic];
                block(YES,@"ok",mg);
            }else{
                NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
                block(NO,msg,nil);
            }
        } failure:^(NSError * error) {
            [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
                block(NO,strMessage,nil);
            }];
        }];
    }
}
#pragma mark - 获取资源的评价列表
+(void)GetTheResourceEvaluationList:(NSString *)resource_id type:(NSString *)type page:(NSString *)page :(HTTPResourceEvaluationList)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:@"get_resource_comment_list",@"interface",resource_id,@"resource_id",type,@"type",page,@"page",count_num30,@"size", nil];
    NSString * url = [NSString stringWithFormat:@"%@",http_shengjing];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZResourceEvaluationListManager * mg = [[LSZResourceEvaluationListManager alloc]initWithResourceEvaluationList:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark -  获取评论的回复列表
+(void)GetAreplyListOfComments:(NSString *)resource_id comment_id:(NSString *)comment_id page:(NSString *)page :(HTTPResourceEvaluationList)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:@"get_comment_reply_list",@"interface",resource_id,@"resource_id",comment_id,@"comment_id",page,@"page",count_num30,@"size", nil];
    NSString * url = [NSString stringWithFormat:@"%@",http_shengjing];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZResourceEvaluationListManager * mg = [[LSZResourceEvaluationListManager alloc]initWithResourceEvaluationList:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 获取点赞人
+(void)GetThumbUp:(NSString *)resource_id type:(NSString *)type page:(NSString *)page :(HTTPGiveLike)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:@"get_praise_list",@"interface",resource_id,@"resource_id",type,@"type",page,@"page",@"10000",@"size", nil];
    NSString * url = [NSString stringWithFormat:@"%@",http_shengjing];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZThumbUpOrBlessingListForResourcesManager * mg = [[LSZThumbUpOrBlessingListForResourcesManager alloc]initWithThumbUpOrBlessingListForResources:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark- 获取可兑换的信息
+(void)getTheConvertibilityInformation:(HTTPExchangeInformation)block
{
    NSMutableDictionary * dic =  [[NSMutableDictionary alloc]init];
    NSString * url = [NSString stringWithFormat:@"%@/user/withdraw_config",http_toutiao];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZGetExchangeInformationManager * mg = [[LSZGetExchangeInformationManager alloc]initWithWithGetExchangeInformation:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 提现记录 status 参数 0未处理 1已审核 2 驳回 3已打款  全部不传
+(void)AlipayOrWeChatWithdrawal:(NSString *)status :(HTTPWithdrawal)block
{
    NSMutableDictionary * dic =  [[NSMutableDictionary alloc]init];
    if (status.length >0 ||![status isEqualToString:@""]) {
        [dic setValue:status forKey:@"status"];
    }
    NSString * url = [NSString stringWithFormat:@"%@/user/withdraw_log",http_toutiao];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZWithdrawalRecordManager * mg = [[LSZWithdrawalRecordManager alloc]initWithWithdrawalRecord:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 诗歌歌谱的弹窗
+(void)thePopoverOfPoetryAndMusic:(NSString *)keyword page:(NSString *)page :(HTTPLyricBooks)block
{
    NSMutableDictionary * dic =  [[NSMutableDictionary alloc]initWithObjectsAndKeys:keyword,@"keyword",page,@"page",count_num30,@"size", nil];
    NSString * url = [NSString stringWithFormat:@"%@/poetry/search_info",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZLyricBooksManager * mg = [[LSZLyricBooksManager alloc]initWithLyricBooks:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 关注的信息
+(void)InformationThatGetsAttention:(NSString *)tuid :(HTTPInformationConcern)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:tuid,@"tuid", nil];
    NSString * url = [NSString stringWithFormat:@"%@/user/get_follow_info",http_toutiao];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            LSZInformationConcernManager * mg = [[LSZInformationConcernManager alloc]initWithInformationConcern:dic];
            block(YES,msg,mg);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 意见反馈列表
+(void)feedbackList:(NSString *)page :(HTTPFeedbackList)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:page,@"page",count_num30,@"size",[_UserM usercode],@"usercode", nil];
    NSString * url = [NSString stringWithFormat:@"%@/Apihandler/suggest_list",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            LSZFeedbackListManager * mg = [[LSZFeedbackListManager alloc]initWithFeedbackList:dic];
            block(YES,msg,mg);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 发布_动态的分类
+(void)publishDynamicCategorization:(HTTPDynamicClassification)block
{
    NSDictionary * diction = [[NSDictionary alloc]init];
    NSString * url = [NSString stringWithFormat:@"%@/dynamic/title",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",dic[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            LSZDynamicClassificationManager * mg = [[LSZDynamicClassificationManager alloc]initWithDynamicClassification:dic];
            block(YES,msg,mg);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 音频搜索结果  歌曲
+(void)AudioAearchResults:(NSString *)strTitle type:(NSString *)type page:(NSString *)page :(HTTPTabAudioSearchResults)block
{
    NSDictionary * dic = [[NSDictionary alloc]init];
    dic = [[NSDictionary alloc]initWithObjectsAndKeys: strTitle,@"keyword",type,@"type",page,@"page",count_num30,@"size", nil];
    NSString * url = [NSString stringWithFormat:@"%@/Music/search",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            NSLog(@"%@>>>>>>>>",dic);
            LSZTabAudioSearchResultsManager * mg = [[LSZTabAudioSearchResultsManager alloc]initWithTabAudioSearchResults:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark- 上传文件(含图片,视频等)
+(void)uploadFilesOfVariousTypes:(NSArray *)imageViewArray filePath:(NSArray *)filePathArray :(HTTPFileUploadGeneric)block
{
    NSString * urlString= [NSString stringWithFormat:@"%@/dynamic/upload",http_zongSJUrl];
    NSDictionary * input = [[NSDictionary alloc]init];
    [[NetworkTool sharedInstance] uploadMultipleImagesAtOnce:urlString input:input dataImage:imageViewArray filePath:filePathArray success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZFileUploadGenericManager * mg = [[LSZFileUploadGenericManager alloc]initWithFileUploadGeneric:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 动态列表
+(void)allDynamicLists:(NSString *)kind id_id:(NSString *)id_id type:(NSString *)type fuid:(NSString *)fuid selfStr:(NSString *)selfStr theme:(NSString *)theme page:(NSString *)page is_city:(NSString *)is_city is_follow:(NSString *)is_follow hot:(NSString *)hot :(HTTPDynamicLists)block
{
    NSDictionary * dic = [[NSDictionary alloc]init];
    dic = [[NSDictionary alloc]initWithObjectsAndKeys: kind,@"kind",id_id,@"id",type,@"type",fuid,@"fuid",selfStr,@"self",theme,@"theme",page,@"page",@"12",@"size",is_city,@"is_city",is_follow,@"is_follow",hot,@"hot", nil];
    NSString * url = [NSString stringWithFormat:@"%@/dynamic/lists",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            if ([id_id isEqualToString:@""]) {
                LSZAllDynamicListsManager * mg = [[LSZAllDynamicListsManager alloc]initWithAllDynamicLists:dic];
                block(YES,@"ok",mg);
            }else {
                LSZAllDynamicListsManager * mg = [[LSZAllDynamicListsManager alloc]initWithDetailsOfTheNotificationInterface:dic];
                block(YES,@"ok",mg);
            }
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 动态评价的详情
+(void)dynamicCommentDetails:(NSString *)fuid tid:(NSString *)tid comment_id:(NSString *)comment_id selfUser:(NSString *)selfUser page:(NSString *)page :(HTTPDynamicCommentDetails)block
{
    NSDictionary * dic = [[NSDictionary alloc]init];
    if(comment_id.length > 0){
        dic = [[NSDictionary alloc]initWithObjectsAndKeys: fuid,@"fuid",tid,@"tid",comment_id,@"comment_id",page,@"page",count_num30,@"size", nil];
    }else{
        dic = [[NSDictionary alloc]initWithObjectsAndKeys: fuid,@"fuid",tid,@"tid",comment_id,@"comment_id",selfUser,@"self",page,@"page",count_num30,@"size", nil];
    }
    NSString * url = [NSString stringWithFormat:@"%@/dynamic/comment_list",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZDynamicCommentDetailsManager * mg = [[LSZDynamicCommentDetailsManager alloc]initWithDynamicCommentDetails:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 获取话题列表
+(void)getListOfTopics:(NSString *)cate :(HTTPListTopics)block
{
    NSDictionary * dic = [[NSDictionary alloc]initWithObjectsAndKeys:cate,@"cate", nil];
    NSString * url = [NSString stringWithFormat:@"%@/dynamic/theme",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZListTopicsManager * mg = [[LSZListTopicsManager alloc]initWithListTopicsDetails:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 身份选择
+(void)initWithIdentityChoose:(HTTPIdentityChoose)block
{
    NSDictionary * dic = [[NSDictionary alloc]init];
    NSString * url = [NSString stringWithFormat:@"%@/identity/identity",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZIdentityChooseManager * mg = [[LSZIdentityChooseManager alloc]initWithIdentityChoose:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 资质信息用户申请结果
+(void)qualifiedUserApplicationResults:(HTTPQualificationApplicationResults)block
{
    NSDictionary * dic = [[NSDictionary alloc]init];
    NSString * url = [NSString stringWithFormat:@"%@/identity/get_apply",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:dic success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZQualificationApplicationResultsManager * mg = [[LSZQualificationApplicationResultsManager alloc]initWithQualificationApplicationResults:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 通知的详情界面 is_read 0得到未读  1得到已读
+(void)detailsofthenotificationinterface:(NSString *)type kind:(NSString *)kind tag:(NSString *)tag page:(NSString *)page :(HTTPObtainNotificationDetails)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:type,@"type",kind,@"kind",tag,@"tag",page,@"page",@"5",@"size", nil];
    NSString * url = [NSString stringWithFormat:@"%@/msg/get_msg",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZObtainNotificationDetailsManager * mg = [[LSZObtainNotificationDetailsManager alloc]initWithObtainNotificationDetails:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 得到举报的类型
+(void)initWithTypeOfReport:(HTTPReportType)block
{
    NSDictionary * diction = [[NSDictionary alloc]init];
    NSString * url = [NSString stringWithFormat:@"%@/dynamic/report_kind",http_zongSJUrl];
    [kNetworkTool POSTFuYinWithUrlString:url input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZReportTypeManager * mg = [[LSZReportTypeManager alloc]initWithReportType:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 关注和粉丝
+(void)initWithAttentionFans:(NSString *)is_fans fuid:(NSString *)fuid page:(NSString *)page :(HTTPAttentionFans)block
{
    NSDictionary * diction = [[NSDictionary alloc]initWithObjectsAndKeys:is_fans,@"is_fans",fuid,@"fuid",count_num30,@"size",page,@"page", nil];
    NSString * urlTotal = [NSString stringWithFormat:@"%@/user/get_follows",http_toutiao];
    [kNetworkTool POSTFuYinWithUrlString:urlTotal input:diction success:^(NSDictionary * dic) {
        NSString * status = [NSString stringWithFormat:@"%@",dic[@"status"]];
        if ([status isEqualToString:@"1"]) {
            LSZAttentionFansManager * mg = [[LSZAttentionFansManager alloc]initWithAttentionFans:dic];
            block(YES,@"ok",mg);
        }else{
            NSString * msg = [NSString stringWithFormat:@"%@",dic[@"message"]];
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 动态_根据id获取专辑 歌手或者歌曲的数据
+(void)dynamicGetsAlbumArtistSongDataBasedOn:(NSString *)ID_ID URL:(NSString *)url type:(NSString *)type :(HTTPNewAudioHomepage)block
{
    NSDictionary * dic = [[NSDictionary alloc]initWithObjectsAndKeys:ID_ID,@"id",nil];
    NSString * urlStr = [NSString stringWithFormat:@"%@%@",http_zongSJUrl,url];
    [kNetworkTool POSTFuYinWithUrlString:urlStr input:dic success:^(NSDictionary * diction) {
        NSString * status = [NSString stringWithFormat:@"%@",diction[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",diction[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            LSZNewAudioHomepageManager  * MG = [[LSZNewAudioHomepageManager alloc]initWithDynamicAccessAlbumSingerDetails:type :diction];
            
            block(YES,msg,MG);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
#pragma mark - 得到mv各个类型的列表
+(void)getListOfAllTheMVTypes:(NSString *)type album_id:(NSString *)album_id artist_id:(NSString *)artist_id key_word:(NSString *)key_word page:(NSString *)page :(HTTPListOfMVTypes)block
{
    NSDictionary * dic = [[NSDictionary alloc]initWithObjectsAndKeys:type,@"type",album_id,@"album_id",artist_id,@"artist",key_word,@"key_word",page,@"page",count_num30,@"size",nil];
    NSString * urlStr = [NSString stringWithFormat:@"%@%@",http_zongSJUrl,@"/mv/get_list"];
    [kNetworkTool POSTFuYinWithUrlString:urlStr input:dic success:^(NSDictionary * diction) {
        NSString * status = [NSString stringWithFormat:@"%@",diction[@"status"]];
        NSString * msg = [NSString stringWithFormat:@"%@",diction[@"msg"]];
        if ([status isEqualToString:@"1"]) {
            LSZListOfMVTypes * type = [[LSZListOfMVTypes alloc]initWithListOfMV:diction];
            block(YES,msg,type);
        }else{
            block(NO,msg,nil);
        }
    } failure:^(NSError * error) {
        [LSZSpecialPackaging Reachability:^(NSString * strMessage) {
            block(NO,strMessage,nil);
        }];
    }];
}
@end
